package com.cx.mall.demo.model;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

import java.io.Serializable;
import java.time.LocalDateTime;

//@Getter
//@Setter
@Data //等同与上面的两个（getter和setter）
@AllArgsConstructor //创建所有属性的构造方法
@NoArgsConstructor //无参构造方法
@ToString
@TableName("user_info")
public class UserInfo implements Serializable {
    private static final long serialVersionUID = 1L;
    private Long id;

    private String username;

    private String password;

    private String email;

    private String nickName;

    private String note;//备注信息
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    @TableField(fill = FieldFill.INSERT)
    private Integer status;//账号启用状态1.禁用 0.启用
    @TableField(fill = FieldFill.INSERT)
    @TableLogic
    private Integer deleted;//1删除0启用
}
